package com.weijian.common.exception;

/**
 * 对话服务异常
 *
 * @author miaoma
 */
public class ConversationServiceException extends RuntimeException {

    public ConversationServiceException(String message) {
        super(message);
    }

    public ConversationServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public static ConversationServiceException aiServiceUnavailable() {
        return new ConversationServiceException("AI服务暂时不可用，请稍后重试");
    }

    public static ConversationServiceException streamingError() {
        return new ConversationServiceException("流式响应处理失败");
    }

    public static ConversationServiceException sessionValidationFailed(String sessionId) {
        return new ConversationServiceException("会话验证失败: " + sessionId);
    }
}
